package nl.flotsam.test;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface WebResource {

    /**
     * The name of the resource that should be returned. Note that this must be a Spring resource identifier. That is,
     * if you want to force reading a File, you should prefix it with 'file:'. If you need the content to be loaded from
     * the classpath, then you prefix it with 'classpath:'.
     */
    String content();

    /** The contentType of the data that needs to be returned. */
    String contentType();

}
